// LoginLogService.java
package com.csxy.six.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csxy.six.R;
import com.csxy.six.R2;
import com.csxy.six.entity.LoginLog;

import java.util.List;

public interface LoginLogService extends IService<LoginLog> {
    R2<Void> recordLogin(Long userId, String ip, String device, boolean success);
    R2<List<LoginLog>> getLoginHistory(Long userId);
    R2<List<LoginLog>> getRecentFailedLogins(String ip);
}